/**
 * 功能描述
 */

define(function (require, exports, module) {
	var Form = require("form");
	var store = require("store");
	var activeUser = store.get("user");
	
    var instance = {
        initComponent: function (params,widget) {
        	var form = new Form({
        		parentNode: ".J-form",
        		model: {
        			id: "form",
        			layout: "3_1",
        			defaultButton : false,
        			items: [{
        				name: "version",
						type: "hidden",
						defaultValue: "0"
        			},{
        				name: "destinationName",
						label: "目的地",
						readonly: true
        			},{
        				name: "checkInDate",
						label: "入住日期",
						type: "date",
						readonly: true
        			},{
        				name: "checkOutDate",
						label: "退房日期",
						type: "date",
						readonly: true
        			},{
        				name: "signUpNum",
						label: "报名人数",
						readonly: true
        			},{
        				name: "operatorName",
						label: "经办人",
			        	defaultValue : activeUser.name,
			        	readonly : true
        			},{
        				name:"statementDate",
        				type:"date",
        				label: "结算日期",
        				readonly: true
        			},{
        				name: "pkCIImplement",
						type: "hidden",
        			},{
        				name:"liveDays",
        				type:"hidden"
        			}]
        		}
        	});
        	widget.set("form",form);
        }
    };
    module.exports = instance;
});
